package com.life.wd.service;

import com.life.wd.dto.GoodsAddRequest;
import com.life.wd.dto.GoodsQueryRequest;
import com.life.wd.dto.GoodsUpdateRequest;
import com.life.wd.entity.Goods;
import com.life.wd.result.PageResult;

import java.io.IOException;
import java.util.List;

public interface GoodsService {
    Long addGoods(GoodsAddRequest request) throws IOException;

    PageResult listGoods(GoodsQueryRequest request);

    boolean updateGoods(GoodsUpdateRequest request) throws IOException;

    boolean deleteGoodsBatch(List<Long> ids);

    boolean deleteGoods(Long id);
}
